from enthought.traits.api import *
import wx

class Counter(HasTraits):
    value = Int()

if __name__ == '__main__':    
    app = wx.PySimpleApp()
    counter = Counter()
    counter.edit_traits()
    app.MainLoop()
    
    print "Value :" + str(counter.value)
                
                
